<?php
// +----------------------------------------------------------------------
// | ThinkCMF [ WE CAN DO IT MORE SIMPLE ]
// +----------------------------------------------------------------------
// | Copyright (c) 2013-2017 http://www.thinkcmf.com All rights reserved.
// +----------------------------------------------------------------------
// | Author: Dean <zxxjjforever@163.com>
// +----------------------------------------------------------------------
// API 模板文件，可以复制
namespace api\resource\controller;

use think\Db;
use think\Request;
use think\Validate;
use cmf\controller\RestBaseController;

class Biao13Controller extends RestBaseController
{


    public function one($data)
    {

        //查 这个表的数据
        @$new_data = $data[0]['content'];
        if (empty($new_data)) {
            return '';
        }
       $html = '
       <div style="width: 650px;margin: 0 auto;">
            <div style="font-size: 16px;font-weight: 600;margin-bottom: 15px;">三、经费情况表</div>
            <table border="1" cellspacing="0px" cellpadding="5px" width="650">
                <thead>
                    <tr>
                        <td colspan="7" style="font-weight: 600">经费筹集情况：(单位：万元)</td>
                    </tr>
                </thead>
                <tbody>
                    <tr>
                        <td>总投入经费：(万元)</td>
                        <td colspan="6">'.@$new_data->text1.'</td>
                    </tr>
                    <tr>
                        <td rowspan="2"></td>
                        <td rowspan="2">省科技厅资金</td>
                        <td colspan="4">其他资金</td>
                        <td rowspan="2">合计</td>
                    </tr>
                    <tr>
                        <td>自有资金</td>
                        <td>贷款</td>
                        <td>其他政府部门投入</td>
                        <td>其它</td>
                    </tr>
                    <tr>
                        <td>已投入经费</td>
                        <td>'.@$new_data->text2.'</td>
                        <td>'.@$new_data->text3.'</td>
                        <td>'.@$new_data->text4.'</td>
                        <td>'.@$new_data->text5.'</td>
                        <td>'.@$new_data->text6.'</td>
                        <td>'.@$new_data->text7.'</td>
                    </tr>
                    <tr>
                        <td>新增经费</td>
                        <td>'.@$new_data->text8.'</td>
                        <td>'.@$new_data->text9.'</td>
                        <td>'.@$new_data->text10.'</td>
                        <td>'.@$new_data->text11.'</td>
                        <td>'.@$new_data->text12.'</td>
                        <td>'.@$new_data->text13.'</td>
                    </tr>
                    <tr>
                        <td colspan="7">其他政府部门、境外资金及其他资金投入情况说明：</td>
                    </tr>
                    <tr>
                        <td colspan="7">'.@$new_data->text14.'</td>
                    </tr>
                    <tr>
                        <td colspan="7" style="font-weight: 600">新增经费预算：(单位：万元)</td>
                    </tr>
                    <tr>
                        <td rowspan="2" colspan="2"></td>
                        <td rowspan="2" colspan="3">新增经费总额</td>
                        <td colspan="2"></td>
                    </tr>
                    <tr>
                        <td colspan="2">其中：省科技厅经费</td>
                    </tr>
                    <tr>
                        <td colspan="2" style="width: 150px;">支出经费</td>
                        <td>经费额</td>
                        <td colspan="2">用途说明</td>
                        <td>经费额</td>
                        <td>用途说明</td>
                    </tr>
                    <tr>
                        <td colspan="2">基建费</td>
                        <td>'.@$new_data->text15.'</td>
                        <td colspan="2">'.@$new_data->text16.'</td>
                        <td>'.@$new_data->text17.'</td>
                        <td>'.@$new_data->text18.'</td>
                    </tr>
                    <tr>
                        <td colspan="2">（一）直接费用</td>
                        <td>'.@$new_data->text19.'</td>
                        <td colspan="2">'.@$new_data->text20.'</td>
                        <td>'.@$new_data->text21.'</td>
                        <td>'.@$new_data->text22.'</td>
                    </tr>
                    <tr>
                        <td colspan="2">1、设备费</td>
                        <td>'.@$new_data->text23.'</td>
                        <td colspan="2">'.@$new_data->text24.'</td>
                        <td>'.@$new_data->text25.'</td>
                        <td>'.@$new_data->text26.'</td>
                    </tr>
                    <tr>
                        <td colspan="2">2、材料费</td>
                        <td>'.@$new_data->text27.'</td>
                        <td colspan="2">'.@$new_data->text28.'</td>
                        <td>'.@$new_data->text29.'</td>
                        <td>'.@$new_data->text30.'</td>
                    </tr>
                    <tr>
                        <td colspan="2">3、测试化验加工外协费</td>
                        <td>'.@$new_data->text31.'</td>
                        <td colspan="2">'.@$new_data->text32.'</td>
                        <td>'.@$new_data->text33.'</td>
                        <td>'.@$new_data->text34.'</td>
                    </tr>
                    <tr>
                        <td colspan="2">4、燃料动力费</td>
                        <td>'.@$new_data->text35.'</td>
                        <td colspan="2">'.@$new_data->text36.'</td>
                        <td>'.@$new_data->text37.'</td>
                        <td>'.@$new_data->text38.'</td>
                    </tr>
                    <tr>
                        <td colspan="2">5、差旅费</td>
                        <td>'.@$new_data->text39.'</td>
                        <td colspan="2">'.@$new_data->text40.'</td>
                        <td>'.@$new_data->text41.'</td>
                        <td>'.@$new_data->text42.'</td>
                    </tr>
                    <tr>
                        <td colspan="2">6、会议费</td>
                        <td>'.@$new_data->text43.'</td>
                        <td colspan="2">'.@$new_data->text44.'</td>
                        <td>'.@$new_data->text45.'</td>
                        <td>'.@$new_data->text46.'</td>
                    </tr>
                    <tr>
                        <td colspan="2">7、国际合作与交流费</td>
                        <td>'.@$new_data->text47.'</td>
                        <td colspan="2">'.@$new_data->text48.'</td>
                        <td>'.@$new_data->text49.'</td>
                        <td>'.@$new_data->text50.'</td>
                    </tr>
                    <tr>
                        <td colspan="2">8、出版/文献/信息传播/知识产权事务费</td>
                        <td>'.@$new_data->text51.'</td>
                        <td colspan="2">'.@$new_data->text52.'</td>
                        <td>'.@$new_data->text53.'</td>
                        <td>'.@$new_data->text54.'</td>
                    </tr>
                    <tr>
                        <td colspan="2">9、租赁费</td>
                        <td>'.@$new_data->text55.'</td>
                        <td colspan="2">'.@$new_data->text56.'</td>
                        <td>'.@$new_data->text57.'</td>
                        <td>'.@$new_data->text58.'</td>
                    </tr>
                    <tr>
                        <td colspan="2">10、人员费</td>
                        <td>'.@$new_data->text59.'</td>
                        <td colspan="2">'.@$new_data->text60.'</td>
                        <td>'.@$new_data->text61.'</td>
                        <td>'.@$new_data->text62.'</td>
                    </tr>
                    <tr>
                        <td colspan="2">11、专家咨询费</td>
                        <td>'.@$new_data->text63.'</td>
                        <td colspan="2">'.@$new_data->text64.'</td>
                        <td>'.@$new_data->text65.'</td>
                        <td>'.@$new_data->text66.'</td>
                    </tr>
                    <tr>
                        <td colspan="2">12、直接费其他支出</td>
                        <td>'.@$new_data->text67.'</td>
                        <td colspan="2">'.@$new_data->text68.'</td>
                        <td>'.@$new_data->text69.'</td>
                        <td>'.@$new_data->text70.'</td>
                    </tr>
                    <tr>
                        <td colspan="2">'.@$new_data->text71.'</td>
                        <td>'.@$new_data->text72.'</td>
                        <td colspan="2">'.@$new_data->text73.'</td>
                        <td>'.@$new_data->text74.'</td>
                        <td>'.@$new_data->text75.'</td>
                    </tr>
                    <tr>
                        <td colspan="2">（二）间接费用</td>
                        <td>'.@$new_data->text76.'/td>
                        <td colspan="2">'.@$new_data->text77.'</td>
                        <td>'.@$new_data->text78.'</td>
                        <td>'.@$new_data->text79.'</td>
                    </tr>
                    <tr>
                        <td colspan="2">'.@$new_data->text80.'</td>
                        <td>'.@$new_data->text81.'</td>
                        <td colspan="2">'.@$new_data->text82.'</td>
                        <td>'.@$new_data->text83.'</td>
                        <td>'.@$new_data->text84.'</td>
                    </tr>
                    <tr>
                        <td colspan="2">合计</td>
                        <td>'.@$new_data->text85.'</td>
                        <td colspan="2">'.@$new_data->text86.'</td>
                        <td>'.@$new_data->text87.'</td>
                        <td>'.@$new_data->text88.'</td>
                    </tr>
                </tbody>
            </table>
        </div>
        ';

            return $html;

    }



}
